package com.springcloud.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * eureka注册中心
 * 访问地址:http://localhost:8080
 * @author Administrator
 *
 */
@SpringBootApplication
@EnableEurekaServer
public class EurekaApp {
	/**
	 * 打包需继承SpringBootServletInitializer类，复写这个方法即可 
	 */  
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(EurekaApp.class);
	}


	
	public static void main(String[] args) {
		SpringApplication.run(EurekaApp.class, args);
	}
}
